package org.example.service.Impl;


import org.example.dao.BookDao;
import org.example.dao.UserDao;
import org.example.service.Bookservice;

/**
 * ClossName:BookServiceImpl
 * Pakage:com.nfIt.service.Impl
 * Description
 *
 * @Author L
 * @Create 2024/4/22 19:17
 * @Version 2023.1.3
 */
public class BookServiceImpl implements Bookservice {

//    引用类型注入
    private BookDao bookDao;

    private UserDao userDao;
    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void say() {
        System.out.println("Bookservice 实现");
        bookDao.say();
        userDao.say();
    }
}
